package com.nmsl.system.medical_temp.controller;

import com.nmsl.system.medical_temp.domain.MedicalHistory;
import com.nmsl.system.medical_temp.service.IMedicalHistoryService;
import com.nmsl.system.medical_temp.service.IMedicalTemplateService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/system/medical_history")
public class MedicalHistoryController {

    @Autowired
    private IMedicalHistoryService medicalHistoryService;


    @PreAuthorize("@ss.hasPermi('system:medical_temp:add')")
    @PostMapping("/insert")
    public int insert(@RequestBody  MedicalHistory medicalHistory) throws Exception {
       return medicalHistoryService.insertMedicalHistory(medicalHistory);

    }

}
